package dataType;

import java.util.Date;

import resources.State;
import tree.Node;

public class Person {
	//nome, a data e o local de nascimento
	private String name;
	private Date birth;
	private City hometown;
	private State state;
	
	public Person(){
		super();
		name = "";
		
	}
	
	public Person(String name){
		super();
		this.name = name;
	}

	public Person(String name, State state){
		super();
		this.name = name;
		this.state = state;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public City getHometown() {
		return hometown;
	}

	public void setHometown(City hometown) {
		this.hometown = hometown;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	
	public boolean isEquals(String name){
		if(this.name.equals(name))
			return true;
		else return false;
	}

}
